package com.dragon.loan.service;

import java.util.List;

import com.dragon.loan.entity.AcIdentityMapperMd5;

public interface AcIdentityMapperMd5Service {
	
	
	void insertByIdCard(String idCard);
	
	void insertByIdCardAndMobile(String idCard,String mobileNo);
	
	boolean isHasIdCardByIdCardMD5(String idCardMD5);

	List<String> getByIdCardMd5(String idCardMd5);
	
	/**
	 * 根据MobileMd5查询加密用户信息
	 * @param mobileMd5
	 * @return
	 * @throws Exception 
	 */
	AcIdentityMapperMd5 getMobileMd5InfoByMobileMd5(String mobileMd5) throws Exception;
	
	/**
	 * 根据Mobile明文查询加密用户信息
	 * @param mobile
	 * @return
	 * @throws Exception
	 */
	AcIdentityMapperMd5 getMobileMd5InfoByMobile(String mobile)throws Exception;
	
	/**
	 * 将用户信息插入ac_identity_mapper_md5表
	 * @param acIdentityMapperMd5
	 * @return
	 * @throws Exception
	 */
	int insertAcIdentityMapperMd5Info(AcIdentityMapperMd5 acIdentityMapperMd5)throws Exception;
}
